package models

type GenericResponse struct {
	Code    int    `json:"code" example:"200"`
	Message string `json:"msg" example:"ok"`
}

type GenericData[T any] struct {
	GenericResponse
	Data T `json:"data"`
}

type GenericListData[T any] struct {
	Total int `json:"total" example:"0"`
	Items []T `json:"items"`
}
